query getPipelineSchedulesQuery(
  $projectPath: ID!
  $status: PipelineScheduleStatus
  $ids: [ID!] = null
) {
  currentUser {
    id
    username
  }
  project(fullPath: $projectPath) {
    id
    pipelineSchedules(status: $status, ids: $ids) {
      count
      nodes {
        id
        description
        cron
        cronTimezone
        ref
        forTag
        editPath
        refPath
        refForDisplay
        lastPipeline {
          id
          detailedStatus {
            id
            group
            icon
            label
            text
            detailsPath
          }
        }
        active
        nextRunAt
        realNextRun
        owner {
          id
          username
          avatarUrl
          name
          webPath
        }
        variables {
          nodes {
            id
            variableType
            key
            value
          }
        }
        userPermissions {
          playPipelineSchedule
          updatePipelineSchedule
          adminPipelineSchedule
        }
      }
    }
  }
}
